<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const level = Symbol("level");
      const student = {
        name: "xiaoming",
        age: "18",
        [Symbol("level")]: "87分",
        [level]: "芜湖",
      };
      console.log(student);

      for (let pro in student) {
        console.log(pro);
      }

      console.log(student[level]);
      console.log(student.getTime);

      // let pros = Object.getOwnPropertyNames("student");
      // console.log(pros);

      let symlist = Object.getOwnPropertySymbols("student");
      for (let pro of symlist) {
        console.log(pro);
      }
    </script>
  </body>
</html>
